<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%city_weather}}".
 *
 * @property integer $id
 * @property integer $zone_id
 * @property string $weather_zone_id
 * @property string $aqi_zone_id
 * @property string $zone_code
 * @property string $zone_name
 * @property integer $average_temparature_id
 * @property integer $humidity_id
 * @property integer $aqi_id
 * @property integer $status
 * @property string $last_update
 */
class CityWeather extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%city_weather}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['zone_id', 'average_temparature_id', 'humidity_id', 'aqi_id', 'status'], 'integer'],
            [['zone_code', 'zone_name'], 'string'],
            [['last_update'], 'safe'],
            [['weather_zone_id', 'aqi_zone_id'], 'string', 'max' => 16]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'zone_id' => 'Zone ID',
            'weather_zone_id' => 'Weather Zone ID',
            'aqi_zone_id' => 'Aqi Zone ID',
            'zone_code' => 'Zone Code',
            'zone_name' => 'Zone Name',
            'average_temparature_id' => 'Average Temparature ID',
            'humidity_id' => 'Humidity ID',
            'aqi_id' => 'Aqi ID',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
